package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Demon
 * Date: 13-6-27
 * Time: 下午4:22
 * To change this template use File | Settings | File Templates.
 */
public class BookList {
    private String bookName;
    private String bookEditor;
    private String bookPublisher;
    private String bookPublishYear;

    BookList(){
        bookEditor="abc";
        bookPublisher="def";
        bookPublishYear="2000";
    }

    public void setBookName(String strBookName){
         bookName=strBookName;
    }

    public String getBookName(){
        return bookName;
    }

    public boolean CheckReserveBookIsLegal(String reserveBookName){
        if(reserveBookName.equals(bookName))
            return true;
        else{
            return false;
        }
    }
}
